<#import "spring.ftl" as spring />


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Contact Us</title>
        <style>
            .form-item { margin: 20px 0; }
            .form-label { font-weight: bold; }
            .form-error-field { background-color: #FFC; }
            .form-error-message { font-weight: bold; color: #900; }
        </style>
    </head>
    <body>

<h1>Register!</h1>

	<@spring.bind 'user.*'/>
	<@spring.showErrors '<br>' />

	<form method="POST">

		<div class="form-item">
			<div class="form-label">Email:</div>
			<@spring.formInput 'user.mail', 'maxlength="30" size="30"' />
			<@spring.showErrors '<br>', 'form-error-message' />
		</div>
		<div class="form-item">
			<div class="form-label">Password:</div>
			<@spring.formInput 'user.password', 'maxlength="30" size="30"' />
			<@spring.showErrors '<br>', 'form-error-message' />
		</div>
		<div class="form-item">
			<div class="form-label">Verify Password:</div>
			<@spring.formInput 'user.verifyPassword', 'maxlength="30" size="30"' />
			<@spring.showErrors '<br>', 'form-error-message' />
		</div>
		<div class="form-item">
			<input type="submit" value="Register" id="submit"/>
		</div>
	</form>

    </body>
</html>  